<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../../assets/libs/jquery/jquery-3.6.1.min.js"></script>
</head>

<body>
  <button id="show">show</button>
  <button id="hide">hide</button>
  <button id="toggle">toggle</button>
  <br>
  <img src="../../../assets/images/Cheems.jpg">

  <script>
    function show() {
      $('img').stop().show(1000)
    }

    function hide() {
      $('img').stop().hide(1000)
    }

    function toggle() {
      $('img').stop().toggle(1000)
    }

    $('#show').click(show)
    $('#hide').click(hide)
    $('#toggle').click(toggle)
  </script>
</body>

</html>